package summer_vacation.xuqianlan;

/**
 * Created by lenovo on 2015/8/22.
 */
public class Test_8 {
    public static void main(String[] args) {
         int s=0,n = 0,i,j;
        for(i=1;i<=10;i++){
            n=1;
            for(j=1;j<=i;j++){
                     n*=j;
            }
            s+=n;
        }
        System.out.println("1!+2!...+10!="+s);
    }
}
